package com.ycb.feign;

import com.ycb.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 黄泽群
 * @since 2023-12-11
 */
@FeignClient(
        value = "seata-user",
        contextId = "seata-user.user",
        path = "/"
)
public interface UserClient {

    @PostMapping("sub-amount")
    User subAmount(@RequestParam("userId") Integer userId,@RequestParam("subAmt") Integer subAmt);

}
